package com.chw;

/**
 * @author chehongwei
 */
public class UserService {

    public void sayHello() {
        try {
            Thread.sleep(300);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("args");
    }

    /**
     * 带参方法
     *
     * @param name
     */
    public void sayHi(String name, Integer age) {
        try {
            Thread.sleep(300);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("args");
        System.out.println(name);
        System.out.println(age);
    }


    public String sayMyGod(String name, Integer age,Object pp) {
        try {
            Thread.sleep(300);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("args");
        System.out.println(name);
        System.out.println(age);
        return (String) pp;

    }
    public String sayError(String name, Integer age,Object pp) {
        try {
            Thread.sleep(300);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        int a = 1/0;
        System.out.println("args");
        System.out.println(name);
        System.out.println(age);
        return (String) pp;

    }





}
